#include "Client.h"

bool Call::Client::Create()
{
    {
        Call::Config config;

        WS::TcpSocket::Desc desc;
        desc.host = config.host.c_str();
        desc.port = config.tcpPort;

        SV_FAILED(m_tcpSocket.ConnectTo(desc));
    }

    m_tcpReceiveTask.m_tcpSocket = m_tcpSocket;

    return true;
}

int Call::Client::Run()
{
    // m_udpSendTask.Start();
    // m_udpRecvTask.Start();
    // m_tcpSendTask.Start();

    // HttpServer
    // m_tcpSendTask.Start();
    m_tcpReceiveTask.Start();

    while (1)
        ;
}